package com.itbbfx.service.department.impl;

import com.itbbfx.entity.Finance;
import com.itbbfx.entity.currentFinance;
import com.itbbfx.mapper.FinanceMapper;
import com.itbbfx.service.department.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinanceServiceImpl implements FinanceService {
    @Autowired
    private FinanceMapper financeMapper;

    Integer[] months = {1,2,3,4,5,6,7,8,9,10,11,12};

    @Override
    public List<Double> reportYearFinance(String year) {
        return financeMapper.reportYearFinance(year,months);
    }

    @Override
    public List<Double> inpatientFinance(String year) {
        return financeMapper.inpatientFinance(year,months);
    }

    @Override
    public List<Finance> reportYearBingFinance() {
        return financeMapper.reportYearBingFinance();
    }

    @Override
    public List<Finance> inpatientYearBingFinance() {
        return financeMapper.inpatientYearBingFinance();
    }

    @Override
    public List<currentFinance> currentFinance(String current) {
        return financeMapper.currentFinance(current);
    }
}